/**
 * Created by Wilson on 3/16/2015.
 */
(function () {
    angular.module('app')
        .factory('alertController', alertController);

    alertController.$inject = ['$window'];
    function alertController($window) {
        var AC = {
            simpleAlert: simpleAlert
        };

        function simpleAlert(msg) {
            ons.notification.alert({
                buttonLabel: '确定',
                animation: 'default',
                title: '系统提示',
                message: msg
            });
        }

        return AC;
    }
})();